

function funcSelect() {

    var vs = $('select  option:selected').val();
    alert(vs);
    console.log("选中的元素是：", vs);

    var Project = sessionStorage.getItem("projectProcessSingle");
    
    // var Project = [[${session.projectProcessSingle}]];
    alert("项目session: ", Project);

    var stausProject = Project.status;
    alert("从session中取值", stausProject);

    if (vs - stausProject != 1) {
        alert("修改失败 不可跨阶段修改");
    } else {
        //可以修改 发送请求
        alert("修改成功 发送请求");
        $.ajax({
            "url": "project/process/doUpdate.json",
            "dataType": "json",
            "type": "post",
            "data": {
                "selectId": vs,
                "projectId": Project.id,
                "memberId": Project.memberid
            },
            beforeSend: function (request) {
                request.setRequestHeader(header, token);
            },
            "success": function (response) {
                var result = response.result;
                if (result == "SUCCESS") {

                    //2.创建JSON对象用于存储对zTree所在的设置
                    alert("修改成功");

                }
            },
        });
    }

}


